package com.google.code.esper.spring;

import com.espertech.esper.client.EPRuntime;
import com.espertech.esper.client.EPServiceProvider;
import org.springframework.core.convert.converter.Converter;

/**
 *
 */
public class ServiceProviderToRuntimeConverter implements Converter<EPServiceProvider, EPRuntime> {

    public EPRuntime convert(EPServiceProvider source) {
        return source.getEPRuntime();
    }

}
